package com.atguigu.dao;

import com.atguigu.pojo.MongoServiceConfig;

import java.util.List;

public interface MongoServiceConfigDao {
    //每个方法中都带有所操作类的名字,为了以后看到这个方法,就知道是干什么的
    public int addMongoServiceConfig(MongoServiceConfig mongoServiceConfig);
    public int deleteMongoServiceConfigById(String id);
    public int updateMongoServiceConfig(MongoServiceConfig mongoServiceConfig);
    public MongoServiceConfig queryMongoServiceConfigById(String id);
    public List<MongoServiceConfig> queryMongoServiceConfigs();
    public MongoServiceConfig queryMongoServiceConfigByServiceId(String serviceId);
    public List<MongoServiceConfig> queryMongoServiceConfigsByPort(String port);
    public Integer queryForPageTotalCount();
    public List<MongoServiceConfig> queryForPageItems(Integer begin, Integer pageSize);
}
